package com.xueshishasha.oa.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.xueshishasha.oa.model.Message;

public interface MessageService {

	public Message getInfo(String id);

	public void updateInfo(Message message);

	public Serializable save(Message message);

	public void delete(Message message);

	public List<Message> getAll();

	public Message getModelById(Serializable id);

	public List<Message> getModels(String hql, Object[] parameters);

	public void saveOrUpdate(Message message);

	public void saveOrUpdateAll(Collection<Message> collection);

	public void update(Message message);

	public List<Message> getByCriteria(DetachedCriteria dc);

}
